#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QThread>
#include <QTcpSocket>

class MyThread:public QThread
{
    Q_OBJECT
public:
    MyThread(QTcpSocket *s);
    virtual void run() override;
public slots:
    void handleClientSocket();
private:
    QTcpSocket *clientSocket;

signals:
    void recvClientData(QString s);
};

#endif // MYTHREAD_H
